package com.liuyi.netty.im.test.lychat.im;

import com.liuyi.netty.im.commons.codes.data.event.Message;
import com.liuyi.netty.im.commons.codes.data.event.Session;
import com.liuyi.netty.im.commons.codes.data.event.message.playload.Playload;
import com.liuyi.netty.im.server.handle.service.SessionService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 会话 实现
 *
 * @author Mr.Fmy
 * @since 2021/12/25
 */
@Service
public class LychatSessionService implements SessionService {


    @Override
    public List<Session> listByUserId(String userId) {
        return new ArrayList<>();
    }

    @Override
    public Session getByUserAndSessionId(String userId, String sessionId) {
        return new Session();
    }

    @Override
    public Session setLastMessage(String userId, String sessionId, Message<? extends Playload> message) {
        return new Session();
    }
}
